export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {name: '登录', path: '/user/login', component: './User/Login'},
      {name: '注册', path: '/user/register', component: './User/Register'},
    ],
  },
  {path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome'},
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      {path: '/admin', redirect: '/admin/dataShow'},
      {path: '/admin/dataShow', name: '数据展示' , component: './Admin/DataShow'},
      {path: '/admin/list', name: '用户管理', component: './Admin/TableList'},
      {path: '/admin/otherManage', name: '其他管理' , component: './Admin/OtherManage'},
    ],
  },
  // {
  //   path: '/user/wordsShow',
  //   name: '留言板',
  //   icon: 'AliwangwangOutlined',
  //   access: 'user',
  //   component: './Words'
  //
  // },
  {path: '/', redirect: './Welcome'},
  {path: '', redirect: './Welcome'},
  {path: '*', layout: false, component: './404'},
  // {path: '/pdf', name: '简历', component: './PDF'},
];
